<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Apache RocketMQ - 企业级分布式消息中间件</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: #667eea;
        }
        
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 40px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e5e7eb;
        }
        
        .timeline-dot {
            position: absolute;
            left: -6px;
            top: 8px;
            width: 14px;
            height: 14px;
            background: #667eea;
            border-radius: 50%;
            border: 3px solid #fff;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.2rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        .badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            display: inline-block;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center animate-fadeInUp">
            <div class="mb-6">
                <i class="fas fa-rocket text-6xl opacity-80"></i>
            </div>
            <h1 class="text-5xl md:text-6xl font-bold mb-6" style="font-family: 'Noto Serif SC', serif;">
                Apache RocketMQ
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90 max-w-3xl mx-auto">
                企业级分布式消息中间件，为高并发、高可靠的消息传输而生
            </p>
            <div class="flex flex-wrap justify-center gap-4 text-sm">
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full">
                    <i class="fas fa-tachometer-alt mr-2"></i>每秒数十万条消息
                </span>
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full">
                    <i class="fas fa-shield-alt mr-2"></i>99.99% 可靠性
                </span>
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full">
                    <i class="fas fa-globe mr-2"></i>分布式架构
                </span>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-7xl mx-auto px-6 py-16">
        
        <!-- 核心功能特性 -->
        <section class="mb-20 animate-fadeInUp">
            <h2 class="section-title text-4xl font-bold mb-12 text-gray-800" style="font-family: 'Noto Serif SC', serif;">
                核心功能特性
            </h2>
            
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <!-- 高吞吐量 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-rocket"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">高吞吐量</h3>
                    <p class="text-gray-600">RocketMQ支持每秒数十万条消息的收发，专为高并发场景设计，轻松应对流量洪峰。</p>
                </div>
                
                <!-- 分布式架构 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-network-wired"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">分布式架构</h3>
                    <p class="text-gray-600">采用分布式设计，支持集群部署，提供高可用性和水平扩展能力，确保服务永不中断。</p>
                </div>
                
                <!-- 消息可靠性 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">消息可靠性</h3>
                    <p class="text-gray-600">支持同步、异步、单向发送，消息持久化存储，主从复制和故障转移，确保消息不丢失。</p>
                </div>
                
                <!-- 多种消息模式 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">多种消息模式</h3>
                    <div class="flex flex-wrap gap-2 mt-3">
                        <span class="badge">普通消息</span>
                        <span class="badge">顺序消息</span>
                        <span class="badge">延迟消息</span>
                        <span class="badge">事务消息</span>
                        <span class="badge">批量消息</span>
                    </div>
                </div>
                
                <!-- 消息过滤 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-filter"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">智能过滤</h3>
                    <p class="text-gray-600">支持基于Tag和SQL表达式的消息过滤，精准投递，减少消费端无效消息处理。</p>
                </div>
                
                <!-- 负载均衡 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="feature-icon text-4xl mb-4">
                        <i class="fas fa-balance-scale"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">负载均衡</h3>
                    <p class="text-gray-600">Producer和Consumer端都具备负载均衡能力，确保消息均匀分布，系统运行平稳。</p>
                </div>
            </div>
            
            <!-- 其他特性 -->
            <div class="mt-8 bg-gradient-to-r from-purple-50 to-indigo-50 rounded-xl p-8">
                <div class="grid md:grid-cols-2 gap-6">
                    <div class="flex items-start">
                        <i class="fas fa-exchange-alt text-2xl text-purple-600 mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-bold text-gray-800 mb-2">灵活的消费模式</h4>
                            <p class="text-gray-600">支持Push和Pull两种消费模式，适应不同业务场景需求。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-search-location text-2xl text-purple-600 mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-bold text-gray-800 mb-2">消息追踪</h4>
                            <p class="text-gray-600">提供完整的消息轨迹功能，方便问题排查和系统监控。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-code text-2xl text-purple-600 mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-bold text-gray-800 mb-2">多语言支持</h4>
                            <p class="text-gray-600">支持Java、C++、Go等多种语言客户端，满足不同技术栈需求。</p>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-chart-line text-2xl text-purple-600 mr-4 mt-1"></i>
                        <div>
                            <h4 class="font-bold text-gray-800 mb-2">管理与监控</h4>
                            <p class="text-gray-600">提供丰富的管理工具和监控指标，运维管理更轻松。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 架构图 -->
        <section class="mb-20 animate-fadeInUp">
            <h2 class="section-title text-4xl font-bold mb-12 text-gray-800" style="font-family: 'Noto Serif SC', serif;">
                系统架构
            </h2>
            <div class="bg-white rounded-xl shadow-lg p-8">
                <div class="mermaid">
                    graph TB
                        subgraph "生产者集群"
                            P1[Producer 1]
                            P2[Producer 2]
                            P3[Producer N]
                        end
                        
                        subgraph "RocketMQ 集群"
                            NS[NameServer<br/>集群]
                            subgraph "Broker 集群"
                                B1[Broker Master 1]
                                B2[Broker Slave 1]
                                B3[Broker Master 2]
                                B4[Broker Slave 2]
                            end
                        end
                        
                        subgraph "消费者集群"
                            C1[Consumer 1]
                            C2[Consumer 2]
                            C3[Consumer N]
                        end
                        
                        P1 & P2 & P3 -.->|注册/心跳| NS
                        P1 & P2 & P3 -->|发送消息| B1 & B3
                        B1 -.->|主从复制| B2
                        B3 -.->|主从复制| B4
                        B1 & B2 & B3 & B4 -.->|注册/心跳| NS
                        C1 & C2 & C3 -.->|注册/心跳| NS
                        C1 & C2 & C3 <--|拉取消息| B1 & B3
                        
                        style NS fill:#667eea,stroke:#fff,color:#fff
                        style B1 fill:#764ba2,stroke:#fff,color:#fff
                        style B3 fill:#764ba2,stroke:#fff,color:#fff
                </div>
            </div>
        </section>

        <!-- 适用业务场景 -->
        